package com.matt.domain;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 请假记录
 */
@Data
@Entity
@Table(name = "tb_leave_record")
@EqualsAndHashCode(callSuper = true)
public class LeaveRecord extends Domain {


    @Column(columnDefinition = " varchar(32) COMMENT '对应园区id' ")
    private String areaId;

    @Column(columnDefinition = " varchar(50) COMMENT '请假对象，teacher-老师请假，parents-家长请假' ")
    private String source;

    @Column(columnDefinition = " datetime DEFAULT NULL COMMENT '请假日期' ")
    private Date leaveDate;

    @Column(columnDefinition = " int default 0 COMMENT '请假类型 1-上午 2-下午 3-全天' ")
    private Integer leaveType=0;

    @Column(columnDefinition = " varchar(1024) COMMENT '内容' ")
    private String content;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '是否审批 false-未审批 true-已审批' ")
    private Boolean ischeck = false;

    @Column(columnDefinition = " int DEFAULT 0 COMMENT '审批结果 0-none 1-通过  2-拒绝' ")
    private Integer status = 0;

    @Column(columnDefinition = " varchar(10) DEFAULT '' COMMENT '审批结果的语义'")
    private String statusVal ;

    @Column(columnDefinition = " varchar(255) DEFAULT '' COMMENT '审批备注'")
    private String checkComment ;

    @Column(columnDefinition = " varchar(64) COMMENT '' ")
    private String childrenId;

    @Column(columnDefinition = " varchar(64) COMMENT '' ")
    private String childrenName;

    @Column(columnDefinition = " varchar(32) COMMENT '' ")
    private String usersId;

    @Column(columnDefinition = " varchar(50) COMMENT '' ")
    private String usersName;


    @Column(columnDefinition = "varchar(64) COMMENT ''")
    private String teacherId = "";

    @Column(columnDefinition = "varchar(64) COMMENT ''")
    private String teacherName = "";

    @Column(columnDefinition = "varchar(64) COMMENT '审核者ID'")
    private String checkStaffId = "";

    @Column(columnDefinition = "varchar(64) COMMENT '审核者名字'")
    private String checkStaffName = "";



}
